<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JS的三种引入方式</title>
</head>
<body>
    <!--行内写法-->
    <button onclick="console.log(666)">点击即玩2</button>
    <button onclick="alert('请先登录')">点击即玩</button>
    <div id="d1"></div>
    <!--内部写法-->
    <script>
        console.log('我想看看执行了没');
        let aa = document.getElementById("d1");
        console.log(aa);
    </script>
    <!--外部写法-->
    <script src="01.js"></script>
</body>
</html>